<?php 
$webroot="../";
if(session::is_manager()==TRUE)
{
	
	require_once '../html/admintemplate.php';
}
else 
{
	require_once '../html/template.php';
}
?>
<link rel="stylesheet" type="text/css" href="jquery.autocomplete.css">
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery.min.js"></script>
<script src="jquery.autocomplete.js" type="text/javascript">
</script>
<script type="text/javascript">


$(function() {

	$("#bincc").autocomplete('search.php');
	

});

function updatecart(ccid,price,ccnum)
{
	$("#freshcvvupdatecart").html("<img src='../images/loading.gif' />");
	$.ajax({
		url:"updatecart.php",
		type:'get',
		data:"ccid="+ccid+"&price="+price+"&ccnum="+ccnum,
		cache: false,
		success: function(j){
		$("#freshcvvupdatecart").html(j);
	  	}
	});	
 	
}
function removeccid(id)
{
	$.ajax({
		url:"removecart.php",
		type:'get',
		data:"ccid="+id,
		cache: false,
		success: function(j){
			$.ajax({
				  url: "updatecart.php",
				  cache: false,
				  success: function(html){
				    $("#freshcvvupdatecart").html(html);
				  }
				});
	  	}
	});	
	
}

function emptycart()
{
	$.ajax({
		url:"removecart.php",
		type:'get',
		data:"empty=1",
		cache: false,
		success: function(j){
			$("#freshcvvupdatecart").html("Your Cart is now Empty");
	  	}
	});	
	
}
</script>
<center>
<table>
<tr class="classarlert">
<td >
Plan<select name="plan" id="plan" onchange="javascript:findinfocc('findourcountry.php','country','0');">
<option value="">Choose Plan</option>
<option value="ourplan" >Root Admin</option>
</select>
</td>
<td>
Country
</td>
<td id="freshcvvcountry">
<select name="country" id="country" onclick="alert('You have to choose Plan first');">
<option value="" >-----</option>
</select>
</td>
<td>
Type
</td>
<td id="freshcvvtype">
<select name="typecc" id="typecc" onclick="alert('You have to choose Country before click here');" >
<option value="" >None</option>
</select>
</td>
<td>
Bin
</td>
<td>
<input type="text" id="bincc">
</td>
<td>
State
</td>
<td id="freshcvvstate">
<select id="state" onclick="alert('You have to choose Type before click here,you can click to None');">
<option value="" >Choose State</option>
</select>
</td>
<td>Dob
<select name="dob" id="postdob" >
<option value="no" >NO</option>
<option value="yes" >YES</option>
</select> 
</td>
<td>
SSN
<select name="ssn" id="postssn" >
<option value="no" >NO</option>
<option value="yes" >YES</option>
</select>
</td>
<td>
<input name="submit" type="submit" onclick="javascript:searchcc();" value="Search CC" />
</td>
</tr>

</table>
</center>